<?
	if (isset($setupdata['modules']['clients']['is'])){
		$sql = $mysqlclass->mysql_my_query("SHOW COLUMNS FROM `".$setupdata['table_prefix']."client`", __LINE__, __FILE__);
		if (mysql_num_rows($sql) > 0) while ($r = mysql_fetch_array($sql, MYSQL_NUM)) $row[$r[0]] = $r[0];
		if (!array_key_exists('lastlogin', $row)) {
			$mysqlclass->mysql_my_query("ALTER TABLE `".$setupdata['table_prefix']."client` ADD `lastlogin` DATETIME NOT NULL", __LINE__, __FILE__);
			$mysqlclass->mysql_my_query("ALTER TABLE `".$setupdata['table_prefix']."client` ADD INDEX (`lastlogin`)", __LINE__, __FILE__);
		}
	}
?>